﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace XCrawler
{
 
    /// <summary>
    /// 爬虫解析器接口
    /// </summary>
    public interface ICrawlerParser
    {
        /// <summary>
        /// 解析器处理函数
        /// </summary>
        /// <param name="crawler">爬虫</param>
        /// <param name="parserBag">爬虫返回信息包</param>
        /// <returns></returns>
        Task DoWorkAsync(ICrawler crawler, ParserBag parserBag);
    }
}
